lib/deploy: Split /etc merge into two stages
authorColin Walters <walters@verbum.org>
Fri, 23 Mar 2018 19:33:38 +0000 (15:33 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Mar 2018 14:24:29 +0000 (14:24 +0000)
commit7ec3d0601430ebcc37006de2dc7a169fcc820646
treec3f50138995e222a78f12ecee4ebc75c0496cb1b
parent460fb7aebc23de4e11e4b9855bbbc866cb0f9430
lib/deploy: Split /etc merge into two stages

For staged deploy, we want to pay the cost of creating copies from
`/usr/etc` → `/etc` at stage time, since it can be expensive.  (We
want to minimize time spent during shutdown).

Split it up into two functions; the logic is also simply clearer.

Closes: #1514
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c